import { defineUserConfig } from 'vuepress'
import recoTheme from 'vuepress-theme-reco';

export default defineUserConfig({
    title: '月下の小窝',
    description: 'Just playing around',
    head: [
        ['link', {
            rel: 'icon',
            href: `/favicon.ico`
        }],
        ["script", { src: "/assets/js/bodyClick.js" }], // ! 网页点击特效
        ["script", { src: "/assets/js/poetry.js"}], // ! 古诗词
        // ["script", { src: "/assets/js/particle.js" }] // !粒子动画 
    ],
    theme: recoTheme({
        style: '@vuepress-reco/style-default',
        logo: '/assets/images/logo.jpg',
        author: '月下',
        authorAvatar: '/assets/images/wang.jpg',
        lastUpdatedText: '',
        // series 为原 sidebar
        series: {
            '/docs/theme-reco/': [
                {
                    text: 'module one',
                    children: ['home', 'theme']
                },
                {
                    text: 'module two',
                    children: ['api', 'plugin']
                }
            ]
        },
        navbar: [
            { text: 'Home', link: '/' },
            {
                text: 'JavaScript',
                children: [
                    { text: '复习', link: '/blogs/JavaScript/summarize.md' },
                    { text: 'TypeScript', link: '/blogs/JavaScript/typeScript.md' },
                    { text: 'Promise', link: '/blogs/JavaScript/Promise.md' }
                ]
            },
            {
                text: 'Vue相关',
                children: [
                    { text: 'NuxtJs', link: '/blogs/Vue/nuxtjs.md' },
                    { text: 'vue-quill-editor', link: '/blogs/Vue/vue-quill-editor.md' }
                ]
            },
            {
                text: '其他',
                children: [
                    { text: 'Git', link: '/blogs/other/Git.md' },
                    { text: 'Jenkins搭建', link: '/blogs/other/Jenkins.md' },
                    { text: '服务器搭建博客', link: '/blogs/other/server.md' },
                    { text: '每日古诗词', link: '/blogs/other/poetry.md' },
                    { text: 'JS/CSS小功能集合', link: '/blogs/other/record.md' },
                ]
            },
        ],
        commentConfig: {
            type: 'valine',
            options: {
                appId: 'lkEIVfeajZT9OZJeTWQrsMBS-gzGzoHsz',
                appKey: 'AGj09kYELUAttOEr1VVfL0sR',
                placeholder: '填写邮箱可以收到回复提醒哦！',
                // notify: true,
                // verify: true, // 验证码服务
                // recordIP: true,
                // hideComments: true // 隐藏评论
            },
        },
    }),
    plugins: [
    ],
    // debug: true,
})
